package com.mrlee.service;

import com.github.pagehelper.PageInfo;
import com.mrlee.bean.Admin;
import com.mrlee.utils.AjaxResult;

import java.util.List;

/**
 * Created by dllo on 18/3/10.
 */
public interface AdminService {

    AjaxResult selectAllAdmin();
    AjaxResult addAdmin(Admin admin, List<Integer> roles);
    AjaxResult deleteAdmin(int adminId);
    Admin selectAdminById(int adminId);
    AjaxResult updateAdmin(Admin admin,List<Integer> roles);
    AjaxResult resetPwd(List<Integer> admins);
    AjaxResult search(String roleName,String name);
    Admin selectAdminByUserame(String name);
    AjaxResult updateAdminInfo(Admin admin);
    PageInfo<Admin> queryAdminByPage(Integer pageNo, Integer pageSize);
    Integer updateByName(String name, String password);
}
